<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>MQ && WebService Platform</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="js/easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="js/jquery.json-2.4.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>

<script>
	
	function refreshTab() {
		var currTab = $('#tt').tabs('getSelected');
			var url = currTab.panel('options')['href'];
			console.log(url);
			console.log(currTab.panel('options'));
			console.log(currTab.panel('options').tab);
			if (url != undefined) {
				$('#tt').tabs('update', {
					tab : currTab,
					options : {
						href : 'ws/wsMain.jsp'
					}
				})
				console.log(currTab.panel('options'));
				console.log(url + ' refreshed');
			}
	}
</script>
<link rel="stylesheet" type="text/css" href="js/My97DatePicker/skin/WdatePicker.css" />
</head>

<body width="100%" height="100%">
	<div id="tt" class="easyui-tabs" tools="#tab-tools" width="100%"
		height="100%">
		<div title="Mq" tools="#p-tools_mq" style="padding: 20px;"
			href="ws/mqMain.jsp"></div>
		<div title="WebService" tools="#p-tools_ws" style="padding: 20px;"
			href="ws/wsMain.jsp"></div>

	</div>

	<div id="p-tools_mq">
		<a href="javascript:refreshTab()" class="icon-mini-refresh"></a>
	</div>
	<div id="p-tools_ws">
		<a href="javascript:refreshTab()" class="icon-mini-refresh"></a>
	</div>
</body>
</html>
